package com.cm.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author xdf
 * @date 2023-06-21
 */
@TableName(value ="question_bank")
@Data
public class QuestionBank implements Serializable {
    /**
     * 题目标识
     */
    @TableId(value = "question_id", type = IdType.AUTO)
    private Integer questionId;

    /**
     * 题目类型(1选择题，2填空题，3问答题）
     */
    @TableField(value = "question_type")
    private Integer questionType;

    /**
     * 题目正文
     */
    @TableField(value = "question_content")
    private String questionContent;

    /**
     * 主观题图片
     */
    @TableField(value = "question_image")
    private byte[] questionImage;

    /**
     * 选择题选项
     */
    @TableField(value = "question_options")
    private String questionOptions;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
